home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / lib / X11 / config / linux.cf < prev    next >
Encoding:
Text File  |  2006-12-20  |  33.2 KB  |  1,244 lines

  1. XCOMM $XdotOrg: util/cf/linux.cf,v 1.31 2005/10/21 19:10:27 ajax Exp $
  2. XCOMM platform:  $Xorg: linux.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
  3.  
  4.  
  5.  
  6.  
  7.  
  8. XCOMM platform:  $XFree86: xc/config/cf/linux.cf,v 3.220 2003/12/30 22:38:33 tsi Exp $
  9.  
  10. #ifndef LinuxElfDefault
  11. # define LinuxElfDefault    YES
  12. #endif
  13.  
  14. #ifndef UseElfFormat
  15. # define UseElfFormat        LinuxElfDefault
  16. #endif
  17.  
  18. #ifndef OSBinaryType
  19. # if UseElfFormat
  20. #  define OSBinaryType        [ELF]
  21. # else
  22. #  ifdef AlphaArchitecture
  23. #   define OSBinaryType        [ECOFF]
  24. #  else
  25. #   define OSBinaryType        [a.out]
  26. #  endif
  27. # endif
  28. #endif
  29.  
  30. #ifndef OSName
  31. # define OSName            DefaultOSName OSBinaryType
  32. #endif
  33.  
  34. #ifndef OSVendor
  35. # define OSVendor        /**/
  36. #endif
  37. #ifndef OSMajorVersion
  38. # define OSMajorVersion        DefaultOSMajorVersion
  39. #endif
  40. #ifndef OSMinorVersion
  41. # define OSMinorVersion        DefaultOSMinorVersion
  42. #endif
  43. #ifndef OSTeenyVersion
  44. # define OSTeenyVersion        DefaultOSTeenyVersion
  45. #endif
  46.  
  47. #ifndef LinuxDistribution
  48. # define LinuxDistribution    DefaultLinuxDistribution
  49. /*
  50.   Add "#define LinuxDistribution Linux<mumble>" to your site.def or host.def.
  51.   Currently only LinuxSuSE, LinuxRedHat and LinuxDebian will be figured out
  52.   automatically.
  53.   Valid values are (from the list at www.linux.org in Oct. '97):
  54.     LinuxUnknown    (0)
  55.     LinuxSuSE       (1)
  56.     LinuxCaldera    (2)
  57.     LinuxCraftworks (3)
  58.     LinuxDebian     (4)
  59.     LinuxInfoMagic  (5)
  60.     LinuxKheops     (6)
  61.     LinuxPro        (7)
  62.     LinuxRedHat     (8)
  63.     LinuxSlackware  (9)
  64.     LinuxTurbo      (10)
  65.     LinuxWare       (11)
  66.     LinuxYggdrasil  (12)
  67. */
  68. #endif
  69. #ifndef LinuxDistName
  70. # define LinuxDistName        DefaultLinuxDistName
  71. #endif
  72. #ifndef LinuxCLibMajorVersion
  73. # define LinuxCLibMajorVersion    DefaultLinuxCLibMajorVersion
  74. #endif
  75. #ifndef LinuxCLibMinorVersion
  76. # define LinuxCLibMinorVersion    DefaultLinuxCLibMinorVersion
  77. #endif
  78. #ifndef LinuxCLibTeenyVersion
  79. # define LinuxCLibTeenyVersion    DefaultLinuxCLibTeenyVersion
  80. #endif
  81.  
  82. #ifndef HasGhostScript
  83. # define HasGhostScript YES
  84. #endif
  85. #ifndef BuildPDFdocs
  86. # define BuildPDFdocs NO
  87. #endif
  88.  
  89. #ifndef ProjectRoot
  90. # define ProjectRoot   /usr
  91. #endif
  92. #ifndef ManDirectoryRoot
  93. # define ManDirectoryRoot      /usr/share/man
  94. #endif
  95. #ifndef AlternateUsrLibDir
  96. # define AlternateUsrLibDir NO
  97. #endif
  98. #ifndef AlternateIncRoot
  99. # define AlternateIncRoot NO
  100. #endif
  101.  
  102. #ifndef LinuxBinUtilsMajorVersion
  103. # define LinuxBinUtilsMajorVersion    DefaultLinuxBinUtilsMajorVersion
  104. #endif
  105.  
  106. XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
  107. XCOMM libc:    (LinuxCLibMajorVersion./**/LinuxCLibMinorVersion./**/LinuxCLibTeenyVersion)
  108. XCOMM binutils:    (LinuxBinUtilsMajorVersion)
  109.  
  110. /* Linux >= 2.0 supports /dev/random, which is poll()able */
  111. #if OSMajorVersion >= 2
  112. # define HasDevRandom        YES
  113. # define PollDevRandom        YES
  114. #endif
  115.  
  116. #if LinuxDistribution == LinuxDebian
  117.  
  118. /* Path setup. */
  119. # ifndef NothingOutsideProjectRoot
  120. #  define NothingOutsideProjectRoot    NO
  121. # endif
  122. # if !defined(NothingOutsideProjectRoot) || !NothingOutsideProjectRoot
  123. #  define SystemManDirectory    /usr/share/man
  124. # endif
  125.  
  126. /* Default GCC options. */
  127. # ifndef DefaultGcc2OptimizeOpt
  128. #  define DefaultGcc2OptimizeOpt    -O2
  129. # endif
  130.  
  131. # define HasPam            YES
  132.  
  133. # if !defined(NothingOutsideProjectRoot) || !NothingOutsideProjectRoot
  134. #  define XAppLoadDir        EtcX11Directory/app-defaults
  135. # define XFileSearchPathDefault    Concat4(EtcX11Directory/%L/%T/%N%C,%S:EtcX11Directory/%l/%T/%N%C,%S:EtcX11Directory/%T/%N%C,%S:EtcX11Directory/%L/%T/%N%S:EtcX11Directory/%l/%T/%N%S:EtcX11Directory/%T/%N%S):Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
  136. /* the relative symlink created by this rule causes problems for us */
  137. # define InstallAppDefFiles    YES
  138. # ifdef InstallAppDefFiles
  139. #  if InstallAppDefFiles
  140. #   define InstallAppDefaultsLong(file,class)                @@\
  141. InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
  142. #  else
  143. #   define InstallAppDefaultsLong(file,class)                @@\
  144. InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
  145. #  endif
  146. # endif /* InstallAppDefFiles */
  147. # endif /* !defined(NothingOutsideProjectRoot) || !NothingOutsideProjectRoot */
  148.  
  149. # define SharedLibXdmGreet    NO
  150. # define LinkGLToUsrInclude    NO
  151. # define LinkGLToUsrLib        NO
  152. # define FSUseSyslog        YES
  153.  
  154. # define BuildLibGlxWithoutPIC  NO
  155.  
  156. # define DriverManSuffix       4x
  157. # define DriverManDir          $(MANSOURCEPATH)4
  158.  
  159. # define MiscManSuffix         7x
  160. # define MiscManDir            $(MANSOURCEPATH)7
  161.  
  162. # define ProjectManSuffix    x
  163.  
  164. # define DebianMaintainer    YES
  165.  
  166. # ifdef DebianMaintainer
  167.  
  168. #  ifndef XorgCustomVersion
  169. #   define XorgCustomVersion        "Debian"
  170. #  endif
  171. #  ifndef BuilderEMailAddr
  172. #   define BuilderEMailAddr        "debian-x@lists.debian.org"
  173. #  endif
  174. #  define XFree86Devel            YES
  175. #  define InstallXinitConfig        YES
  176. #  define InstallXdmConfig        YES
  177. #  define InstallFSConfig        YES
  178. #  define DebuggableLibraries        YES
  179. #  define ForceNormalLib        YES
  180. #  define SharedLibFont            NO
  181. #  define SharedLibGlu            YES
  182. #  define NormalLibGlu            YES
  183. #  define BuildFontCache        YES
  184.  
  185. #  define BuildAllSpecsDocs        NO
  186. #  ifndef BuildSpecsDocs
  187. #   define BuildSpecsDocs        YES
  188. #  endif
  189. #  define SpecsDocDirs            BDF CTEXT FSProtocol GL ICCCM ICE PM \
  190.                 Render SM X11 XDMCP XIM XLFD XProtocol \
  191.                 Xaw Xext Xi Xmu Xserver Xt Xv XvMC \
  192.                 i18n rstart xfs xterm xtrans
  193. #  define XkbServerDefines        -DNOISY
  194. #  define BuildHtmlManPages        NO
  195. #  define DontPreprocessManPages    NO
  196.  
  197. /* We have a local patch that defines PicLibraryTarget(), instead of
  198.  * upstream's method. */
  199. #  define StaticNeedsPicForShared    NO
  200.  
  201. /* Some libraries changed compilation method from static to shared and they do not
  202.  * ship header files.
  203.  * Temporary revert the build to static until all the changes will be investigated
  204.  * properly
  205.  */
  206. #  define SharedLibXau            YES
  207. #  define SharedLibXdmcp        YES
  208. #  define NormalOldX            NO
  209. #  define DebugOldX            NO
  210. #  define SharedOldX            NO
  211. #  define SharedLibDmx            YES
  212. #  define SharedLibGLw            NO
  213. #  define SharedLibFont            NO
  214. #  define SharedLibFontEnc        NO
  215. #  define SharedLibXfontcache        NO
  216. #  define BuildFreetypeDlModule        NO
  217.  
  218. #  define KernelVersionInBanner        YES
  219.  
  220. /* We don't want XRX. */
  221. #  define BuildPlugin        NO
  222.  
  223. /* The TT/Meltho fonts are all under non-free licences, except for BitStream
  224.  * Vera, which is provided by an external package anyway. */
  225. #  define BuildTrueTypeFonts        NO
  226. #  define BuildBethMarduthoFonts    NO
  227.  
  228. #  define MakeDllModules        YES
  229.  
  230. /* All the following are fulfilled by Build-Depends. */
  231. #  define BuildRman            NO
  232. #  define RmanCmd            /usr/bin/rman
  233. #  define RmanOptions            /**/
  234. #  define HasTk                YES
  235. #  define TkLibDir            /usr/lib
  236. #  define TkIncDir            /usr/include
  237. #  define TkLibName            tk8.4
  238. #  define XF86SetupUsesStaticTk        NO
  239. #  define HasTcl            YES
  240. #  define TclLibDir            /usr/lib
  241. #  define TclIncDir            /usr/include
  242. #  define TclLibName            tcl8.4
  243. #  define XF86SetupUsesStaticTcl    NO
  244. #  define BuildExpatLibrary        NO
  245. #  define HasExpat            YES
  246. #  define ExpatIncDirStandard        YES
  247. #  define BuildFontconfigLibrary    NO
  248. #  define HasFontconfig            YES
  249. #  define UseFontconfig            YES
  250. #  define BuildRenderLibrary        NO
  251. #  define HasRenderLibrary        YES
  252. #  define BuildXcursorLibrary        NO
  253. #  define HasXcursorLibrary        YES
  254. /* Xlib needs to know the available version of Xcursor. */
  255. #  define SharedXcursorRev        1
  256. #  define BuildXftLibrary        NO
  257. #  define HasXftLibrary            YES
  258. #  define BuildFreetype2Library        NO
  259. #  define HasFreetype2            YES
  260. #  define FontLibSharedFreeType        NO
  261. #  define HasLatex            YES
  262.  
  263. /*
  264.  * The XFree86 Debian package no longer builds the Xprt server, in favor
  265.  * of a separate xprint package.  We do still build the library,
  266.  * but only when we're not building servers only, so it gets built in the
  267.  * normal build, but not -dbg (as it requires libXt headers).
  268.  */
  269. #  define XprtServer            NO
  270. #  define BuildXprintLib        !BuildServersOnly
  271.  
  272. #  ifdef UseInstalled
  273. #   define RenderLibraryDir        /usr
  274. #   define XftLibraryDir        /usr
  275. #   define XcursorLibraryDir        /usr
  276. #  else /* We have a special hack to find these. */
  277. #   define RenderLibraryDir        $(TOP)/../../imports
  278. #   define XftLibraryDir        $(TOP)/../../imports
  279. #   define XcursorLibraryDir        $(TOP)/../../imports
  280. #  endif
  281.  
  282. /* Wraphelp.c magic is supplied via a custom patch. */
  283. #  define HasXdmAuth            YES
  284.  
  285. #  ifdef LinuxArchitecture
  286. /* Glide2 only works on i386. */
  287. #  ifdef i386Architecture
  288. #   define HasGlide2            YES
  289. #   define Glide2IncDir        /usr/include/glide
  290. #  endif /* i386Architecture */
  291. /* Glide3 only works on alpha, amd64, i386 and ia64. */
  292. #  if defined(i386Architecture) || defined(AlphaArchitecture) || \
  293.       defined(ia64Architecture) || defined(AMD64Architecture)
  294. #   define HasGlide3            YES
  295. #   define Glide3IncDir        /usr/include/glide3
  296. #  endif /* i386Architecture || AlphaArchitecture || ia64Architecture ||
  297.             AMD64Architecture */
  298. #  endif /* LinuxArchitecture */
  299.  
  300. /* Enable extended instruction set support. */
  301. #  ifdef i386Architecture
  302. #   define HasX86Support        YES
  303. #   define HasMMXSupport       YES
  304. #   define Has3DNowSupport     YES
  305. #   define HasSSESupport       YES
  306. #  endif /* i386Architecture */
  307. # endif /* DebianMaintainer */
  308. #endif /* LinuxDebian */
  309.  
  310. #if LinuxDistribution == LinuxRedHat
  311. #define FSUseSyslog        YES
  312. #endif
  313.  
  314. #ifndef HasDevRandom
  315. # define HasDevRandom YES
  316. # ifndef RandomDeviceName
  317. #  define RandomDeviceName /dev/urandom
  318. # endif
  319. #endif
  320.  
  321. /*
  322.  * The Linux BinUtils major version.  25 => 2.5.x, which is what is included
  323.  * with Slackware 3.0
  324.  *
  325.  * This remains for compatibility only.
  326.  *
  327.  */
  328. #ifndef BinUtilsMajorVersion
  329. # define BinUtilsMajorVersion    LinuxBinUtilsMajorVersion
  330. #endif
  331.  
  332. #if (LinuxCLibMajorVersion >= 6 || LinuxDistribution == LinuxSuSE)
  333. # define LinuxLocaleDefines    /**/
  334. #else
  335. # define LinuxLocaleDefines    -DX_LOCALE
  336. #endif
  337.  
  338. #ifndef  LinuxAdditionalIncludes
  339. # define LinuxAdditionalIncludes    /**/
  340. #endif
  341.  
  342. #ifndef LinuxGnuSourceDefines
  343. # ifdef UseInstalled
  344. #  define LinuxGnuSourceDefines    /**/
  345. # else
  346. #  define LinuxGnuSourceDefines    -D_GNU_SOURCE
  347. # endif
  348. #endif
  349.  
  350. #if LinuxCLibMajorVersion >= 6
  351. # define LinuxSourceDefines    -D_POSIX_C_SOURCE=199309L \
  352.                 -D_POSIX_SOURCE -D_XOPEN_SOURCE \
  353.                 -D_BSD_SOURCE -D_SVID_SOURCE \
  354.                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
  355.                 LinuxAdditionalIncludes LinuxGnuSourceDefines \
  356.                 LinuxLocaleDefines
  357. # define XawI18nDefines        -DHAS_WCHAR_H -DHAS_WCTYPE_H -DNO_WIDEC_H
  358. # define HasPosixThreads    YES
  359. # define ThreadedX        YES
  360. # define HasThreadSafeAPI    YES
  361. # define ThreadsLibraries    -lpthread
  362. # define SystemMTDefines    -D_REENTRANT
  363. # ifndef HasLibCrypt
  364. #  define HasLibCrypt        YES
  365. # endif
  366. /* netscape wraps select but not poll as of communicator 4.72 */
  367. # ifndef HasPoll
  368. #  define HasPoll        NO
  369. # endif
  370. #else
  371. # define LinuxSourceDefines    -D_POSIX_SOURCE -D_POSIX_C_SOURCE=2 \
  372.                 -D_BSD_SOURCE -D_SVID_SOURCE \
  373.                 LinuxGnuSourceDefines LinuxLocaleDefines
  374. # define XawI18nDefines        -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
  375. # ifndef HasLibCrypt
  376. #  define HasLibCrypt        NO
  377. # endif
  378. # ifndef HasBasename
  379. #  define HasBasename        NO
  380. # endif
  381.   /* Proliferation of C99isms makes -ansi unpalatable... */
  382. # if !defined(DefaultCCOptions) && !defined(UseInstalled) && HasGcc
  383. #  define DefaultCCOptions    GccWarningOptions
  384. # endif
  385. #endif
  386.  
  387. #ifndef InstallXloadSetGID
  388. #define InstallXloadSetGID    NO
  389. #endif
  390.  
  391. /*
  392.  * XXX Check which versions of Linux really have IPv6.  glibc 2.0 on
  393.  * Red Hat 5.2 doesn't.
  394.  */
  395. #if LinuxCLibMajorVersion < 6 || \
  396.     (LinuxCLibMajorVersion == 6 && LinuxCLibMinorVersion == 0)
  397. #define BuildIPv6        NO
  398. #endif
  399.  
  400. /* <linux/input.h> support mainly for USB support */
  401. #ifndef HasLinuxInput
  402. # if defined(__linux__) && (OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 4))
  403. #  define HasLinuxInput YES
  404. # else
  405. #  define HasLinuxInput NO
  406. # endif
  407. #endif
  408.  
  409. #ifndef JoystickSupport
  410. # define JoystickSupport    NO    /* joystick driver is broken */
  411. #endif
  412.  
  413. /* <linux/joystick.h> appeared in 2.1.45 (officially) */
  414. #ifndef HasLinuxSupport
  415. # if defined(__linux__) && (JoystickSupport || \
  416.      (OSMajorVersion > 2) || \
  417.      ((OSMajorVersion == 2) && (OSMinorVersion > 1)) || \
  418.      ((OSMajorVersion == 2) && (OSMinorVersion == 1) && (OSTeenyVersion >= 45)))
  419. #  define HasLinuxJoystick    YES
  420. # else
  421. #  define HasLinuxJoystick    NO
  422. # endif
  423. #endif
  424.  
  425. /* Libtool on linux always uses minor numbers */
  426. #define LibtoolMinorVersions    YES
  427.  
  428. /* On x86, determine whether to build with MTRR support */
  429. #ifndef HasMTRRSupport
  430. # if defined (i386Architecture) || defined (AMD64Architecture)
  431. #  if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 1) || \
  432.       (OSMajorVersion == 2 && OSMinorVersion == 1 && OSTeenyVersion >= 99)
  433. #   define HasMTRRSupport    YES
  434. #  else
  435. #   define HasMTRRSupport    NO
  436. #  endif
  437. # else
  438. #  define HasMTRRSupport    NO    /* no for non-ix86 */
  439. # endif
  440. #endif
  441.  
  442. #ifndef XF86INT10_BUILD
  443. # if defined(__linux__) && defined(i386Architecture)
  444. #  define XF86INT10_BUILD    X86VM
  445. # elif defined(__linux__) && defined(AMD64Architecture)
  446. #  define XF86INT10_BUILD    X86EMU_OS
  447. # else
  448. #  define XF86INT10_BUILD    X86EMU_GENERIC
  449. # endif
  450. #endif
  451.  
  452. /* 
  453.  * Let the OS restore console fonts instead of the generic VGA
  454.  * layer. This exists for Linux only at the moment so put it
  455.  * here.
  456.  */
  457. #ifndef DoOSFontRestore
  458. # define DoOSFontRestore YES
  459. #endif
  460.  
  461. /* Should we check the OS version to determine if the kernel supports it? */
  462. #if DoOSFontRestore
  463. # ifndef FontRestoreCheckOsVersion
  464. #  define FontRestoreCheckOsVersion YES
  465. # endif
  466. #endif
  467.  
  468. /* The DRM module requires kernel services that appeared in late 2.1.x
  469.    kernels and are known to be present in 2.2.x kernels. */
  470. #ifndef BuildXF86DRI
  471. #  if defined(AlphaArchitecture)
  472. #    define BuildXF86DRI    YES
  473. #  elif defined(Arm32Architecture)
  474. #    define BuildXF86DRI    NO
  475. #  elif defined(HPArchitecture)
  476. #    define BuildXF86DRI    YES
  477. #  elif defined(i386Architecture)
  478. #    if (defined(__linux__) && (OSMajorVersion > 2 || (OSMajorVersion == 2 && \
  479.         OSMinorVersion >= 2))) || \
  480.         defined(__FreeBSD_kernel__)
  481. #      define BuildXF86DRI    YES
  482. #    else
  483. #      define BuildXF86DRI    NO
  484. #    endif
  485. #  elif defined(ia64Architecture)
  486. #    define BuildXF86DRI    YES
  487. #  elif defined(Mc68020Architecture)
  488. #    define BuildXF86DRI    NO
  489. #  elif defined(MipsArchitecture)
  490. #    define BuildXF86DRI    NO
  491. #  elif defined(PpcArchitecture)
  492. #    define BuildXF86DRI    YES
  493. #  elif defined(Ppc64Architecture)
  494. #    define BuildXF86DRI    NO
  495. #  elif defined(s390Architecture) || defined(s390xArchitecture)
  496. #    define BuildXF86DRI    NO
  497. #  elif defined(SparcArchitecture)
  498. #    define BuildXF86DRI    YES
  499. #  elif defined(SuperHArchitecture)
  500. #    define BuildXF86DRI    NO
  501. #  elif defined(AMD64Architecture)
  502. #    define BuildXF86DRI    YES
  503. #  else
  504. #    define BuildXF86DRI    NO
  505. #  endif
  506. #endif
  507.  
  508. /*
  509.  * Build shared libGL and the DRI modules without -fPIC on some architectures.
  510.  * This improves performance.
  511.  */
  512. #ifndef BuildLibGlxWithoutPIC
  513. # if BuildXF86DRI
  514. #  if defined(i386Architecture)
  515. #   define BuildLibGlxWithoutPIC    YES
  516. #  endif
  517. # endif
  518. #endif
  519.  
  520. #ifndef HasAgpGart
  521. #  if defined(i386Architecture) || defined(ia64Architecture) || defined(AMD64Architecture)
  522.      /* The AGPGART header file is included in os-support/linux, which
  523.         allows all drivers that depend on AGP to build properly. */
  524. #    define HasAgpGart    YES
  525. #  else
  526. #    define HasAgpGart    NO
  527. #  endif
  528. #endif
  529.  
  530. /*
  531.  * Support for Intel's SSE Native Instructions, also known as the
  532.  * Streaming SIMD Extensions, was introduced in the 2.4.x kernels.
  533.  */
  534. #ifndef HasSSESupport
  535. #  if defined(i386Architecture)
  536. #    if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 4)
  537. #      define HasSSESupport        YES
  538. #    else
  539. #      define HasSSESupport        NO
  540. #    endif
  541. #  else
  542. #    define HasSSESupport        NO
  543. #  endif
  544. #endif
  545.  
  546. /*
  547.  * Support for MMX isn't present in the Assembler used in Red Hat 4.2, so
  548.  * don't enable it for libc5 as a reasonable default.
  549.  */
  550. #ifndef HasMMXSupport
  551. #  if defined(i386Architecture)
  552. #    if (LinuxCLibMajorVersion > 5)
  553. #      define HasMMXSupport        YES
  554. #    else
  555. #      define HasMMXSupport        NO
  556. #    endif
  557. #  else
  558. #    define HasMMXSupport        NO
  559. #  endif
  560. #endif
  561.  
  562. /*
  563.  * Support for 3DNow isn't present in the Assembler used in Red Hat 4.2, so
  564.  * don't enable it for libc5 as a reasonable default.
  565.  *
  566.  * XXX This is preliminary.
  567.  */
  568. #ifndef Has3DNowSupport
  569. #  if defined(i386Architecture)
  570. #    if (LinuxCLibMajorVersion > 5)
  571. #      define Has3DNowSupport        YES
  572. #    else
  573. #      define Has3DNowSupport        NO
  574. #    endif
  575. #  else
  576. #    define Has3DNowSupport        NO
  577. #  endif
  578. #endif
  579.  
  580. /*
  581.  * The Rush extension support.
  582.  */
  583. #ifndef BuildXF86RushExt
  584. # define BuildXF86RushExt    YES
  585. #endif
  586.  
  587. #if defined(__linux__) && !defined(LinuxFBDevSupport)
  588. # define LinuxFBDevSupport    YES
  589. #endif
  590.  
  591. /* For compatibility */
  592. #define SourceDefines        LinuxSourceDefines
  593.  
  594. #define BuildLibPathVar        LD_LIBRARY_PATH
  595. #define GccUsesGas        YES
  596. #define UseGas            YES
  597. #define GnuCpp            YES
  598. #if UseElfFormat
  599. # ifndef HasDlopen
  600. #  define HasDlopen        YES
  601. # endif
  602. #endif
  603. #define HasWeakSymbols        UseElfFormat
  604. #ifndef HasShadowPasswd
  605. # if UseElfFormat
  606. #  define HasShadowPasswd    YES
  607. # else
  608. #  define HasShadowPasswd    NO
  609. # endif
  610. #endif
  611. #define HasPutenv        YES
  612. #ifndef HasShm
  613. # define HasShm            YES
  614. #endif
  615.  
  616. /* Use SecureRPC (used for SUN-DES-1 auth. and other goodies) when
  617.  * glibc has support for it */
  618. #ifndef HasSecureRPC
  619. # if !(LinuxCLibMajorVersion < 6 || \
  620.        (LinuxCLibMajorVersion == 6 && LinuxCLibMinorVersion < 3))
  621. #  define HasSecureRPC          YES
  622. # endif
  623. #endif
  624.  
  625. #define HasSockets        YES
  626. #if UseElfFormat || defined(AlphaArchitecture)
  627. #ifndef HasSnprintf
  628. #define HasSnprintf        YES
  629. #endif
  630. #define HasMkstemp        YES
  631. #endif
  632. /* getresuid() appeared in 2.1.4, and getresgid in 2.1.44 */
  633. #if !defined(HasGetresuid) && \
  634.  (((OSMajorVersion*100000) + (OSMinorVersion*1000) + OSTeenyVersion) >= 201044)
  635. #define HasGetresuid        YES
  636. #endif
  637. #if OSMajorVersion >= 2
  638. #define HasUsableFileMmap    YES
  639. #endif
  640. #ifndef HasNCurses
  641. #define HasNCurses        YES
  642. #endif
  643.  
  644. #ifndef HasGroff
  645. #define HasGroff        YES
  646. #endif
  647.  
  648. #ifndef HasZlib
  649. #define HasZlib            YES
  650. #endif
  651.  
  652. #ifndef HasLibpng
  653. #define HasLibpng        YES
  654. #endif
  655.  
  656. #ifndef HasExpat
  657. # define HasExpat        YES
  658. #endif
  659.  
  660. #ifndef HasFreetype2
  661. # define HasFreetype2        YES
  662. #endif
  663.  
  664. #define AvoidNullMakeCommand    YES
  665. #ifndef DebuggableLibraries
  666. #define DebuggableLibraries    NO
  667. #endif
  668. #define CompressAllFonts    YES
  669. #define Malloc0ReturnsNull    YES
  670. #define NeedConstPrototypes    YES
  671. #define NeedFunctionPrototypes    YES
  672. #define NeedNestedPrototypes    YES
  673. #define NeedVarargsPrototypes    YES
  674. #ifndef NeedWidePrototypes
  675. #define NeedWidePrototypes    NO
  676. #endif
  677. #define SetTtyGroup        YES
  678.  
  679. #ifndef UseStaticTermcapLib
  680. #define UseStaticTermcapLib    NO
  681. #endif
  682.  
  683. #ifndef HasCookieMaker
  684. #define HasCookieMaker        YES
  685. #define MkCookieCmd        mcookie
  686. #endif
  687.  
  688. #ifndef BourneShell
  689. /*
  690.  * This will cause builds/installs to terminate on errors, as on other
  691.  * platforms.
  692.  */
  693. #define BourneShell        /bin/sh -e
  694. #endif
  695.  
  696. #define MkdirHierCmd        mkdir -p
  697.  
  698. #ifndef HaveLib64
  699. # if defined (s390xArchitecture)
  700. #  define HaveLib64    YES
  701. # else
  702. #  define HaveLib64    NO
  703. # endif
  704. #endif
  705.  
  706. #if UseElfFormat
  707. # ifndef DoLoadableServer
  708. #  if defined(MipsArchitecture) || defined(SuperHArchitecture)
  709. #   define DoLoadableServer    NO
  710. #  else
  711. #   define DoLoadableServer    YES
  712. #  endif
  713. # endif
  714. #endif
  715.  
  716.  
  717. #if LinuxElfDefault
  718. # if UseElfFormat
  719. #  ifdef MipsArchitecture
  720. #   ifndef AsCmd
  721. #     define AsCmd        gcc -c -x assembler-with-cpp
  722. #   endif
  723. #   ifndef MakeDllModules
  724. #     define MakeDllModules    YES
  725. #   endif
  726. #  endif /* MipsArchitecure */
  727. #  if defined (i386Architecture) && ((GccMajorVersion >3) \
  728.    || ((GccMajorVersion == 3) &&  (GccMinorVersion >= 1)))
  729. #   ifndef CcCmd
  730. #    define CcCmd        gcc -m32
  731. #   endif
  732. #   ifndef CplusplusCmd
  733. #    define CplusplusCmd    c++ -m32
  734. #   endif
  735. #  endif
  736. #  if defined (Ppc64Architecture)
  737. #   ifndef CcCmd
  738. #    define CcCmd        gcc -m64
  739. #   endif
  740. #   ifndef CplusplusCmd
  741. #    define CplusplusCmd    c++ -m64
  742. #   endif
  743. #  endif
  744. #  ifndef CcCmd
  745. #   define CcCmd        gcc
  746. #   define CplusplusCmd        c++
  747. #  endif
  748. #  ifndef AsCmd
  749. #   define AsCmd        CcCmd -c -x assembler
  750. #  endif
  751. #  define AsmDefines        -D__ELF__
  752. #  ifndef LdCmd
  753. #   define LdCmd        CcCmd -nostdlib
  754. #  endif
  755. #  ifndef LinuxUsesNcurses
  756. #   if LinuxCLibMajorVersion >= 6 || (LinuxDistribution == LinuxSuSE)
  757. #    define LinuxUsesNcurses    YES
  758. #   else
  759. #    define LinuxUsesNcurses    NO
  760. #   endif
  761. #  endif
  762. #  ifndef TermcapLibrary
  763. #   if UseStaticTermcapLib
  764. #    if LinuxUsesNcurses
  765. #     if !HaveLib64
  766. #      define TermcapLibrary    StaticLibrary(/usr/lib,ncurses)
  767. #     else
  768. #      define TermcapLibrary    StaticLibrary(/usr/lib64,ncurses)
  769. #     endif
  770. #    else
  771. #     if !HaveLib64
  772. #      define TermcapLibrary    StaticLibrary(/usr/lib/termcap,termcap)
  773. #     else
  774. #      define TermcapLibrary    StaticLibrary(/usr/lib64/termcap,termcap)
  775. #     endif
  776. #    endif
  777. #   else
  778. #    if LinuxUsesNcurses
  779. #     define TermcapLibrary    -lncurses
  780. #    else
  781. #     define TermcapLibrary    -ltermcap
  782. #    endif
  783. #   endif
  784. #  endif
  785. # else /* UseElfFormat */
  786. #  ifdef AlphaArchitecture
  787. #   define CcCmd        gcc -b alpha-linuxecoff
  788. #   define CplusplusCmd        g++ -b alpha-linuxecoff
  789. #   define AsCmd        CcCmd -c -x assembler
  790. #   define LdCmd        CcCmd -nostdlib -Wl,"-m alpha"
  791. #   define AsmDefines        -DUSE_GAS -U__ELF__
  792. #  endif /* AlphaArchitecture */
  793. #  ifdef HPArchitecture
  794. #   define CcCmd        gcc
  795. #   define CplusplusCmd        g++
  796. #   define AsCmd        CcCmd -c -x assembler
  797. #   define LdCmd        CcCmd -nostdlib
  798. #   define AsmDefines        -DUSE_GAS -U__ELF__
  799. #  endif /* HPArchitecture */
  800. #  ifdef i386Architecture
  801. #   define CcCmd        gcc -b i486-linuxaout
  802. #   define CplusplusCmd        g++ -b i486-linuxaout
  803. #   define AsCmd        CcCmd -c -x assembler
  804. #   define LdCmd        CcCmd -nostdlib -Wl,"-m i386linux"
  805. #   define AsmDefines        -DUSE_GAS -U__ELF__
  806. #  endif /* i386Architecture */
  807. #  ifdef ia64Architecture
  808. #   define CcCmd        gcc
  809. #   define CplusplusCmd        g++
  810. #   define AsCmd        CcCmd -c -x assembler
  811. #   define LdCmd        CcCmd -nostdlib
  812. #   define AsmDefines        -DUSE_GAS -U__ELF__
  813. #  endif /* ia64Architecture */
  814. #  ifdef Mc68020Architecture
  815. #   define CcCmd        gcc -b m68k-linuxaout
  816. #   define CplusplusCmd        g++ -b m68k-linuxaout
  817. #   define AsCmd        CcCmd -c -x assembler
  818. #   define LdCmd        CcCmd -nostdlib -Wl,"-m m68klinux"
  819. #   define AsmDefines        -DUSE_GAS -U__ELF__
  820. #  endif /* Mc68020Architecture */
  821. #  ifdef AMD64Architecture
  822. #   define CcCmd        gcc
  823. #   define CplusplusCmd        g++
  824. #   define AsCmd        CcCmd -c -x assembler
  825. #   define LdCmd        CcCmd -nostdlib
  826. #   define AsmDefines        -DUSE_GAS -U__ELF__
  827. #  endif /* AMD64Architecture */
  828. # endif /* UseElfFormat */
  829. #else
  830. # if UseElfFormat
  831. #  ifdef AlphaArchitecture
  832. #   define CcCmd        gcc -b alpha-linux
  833. #   define CplusplusCmd        c++ -b alpha-linux
  834. #   define AsCmd        CcCmd -c -x assembler
  835. #   define LdCmd        CcCmd -nostdlib -Wl,"-m elf64alpha"
  836. #   define AsmDefines        -D__ELF__
  837. #  endif /* AlphaArchitecture */
  838. #  ifdef HPArchitecture
  839. #   define CcCmd        gcc
  840. #   define CplusplusCmd        g++
  841. #   define AsCmd        CcCmd -c -x assembler
  842. #   define LdCmd        CcCmd -nostdlib
  843. #   define AsmDefines        -D__ELF__
  844. #   define SharedLibXau        YES
  845. #  endif /* HPArchitecture */
  846. #  ifdef i386Architecture
  847. #   define CcCmd        gcc -b i486-linux
  848. #   define CplusplusCmd        c++ -b i486-linux
  849. #   define AsCmd        CcCmd -c -x assembler
  850. #   define LdCmd        CcCmd -nosdlib -Wl,"-m elf_i386"
  851. #   define AsmDefines        -D__ELF__
  852. #  endif /* i386Architecture */
  853. #  ifdef ia64Architecture
  854. #   define CcCmd        gcc
  855. #   define CplusplusCmd        g++
  856. #   define AsCmd        CcCmd -c -x assembler
  857. #   define LdCmd        CcCmd -nostdlib
  858. #   define AsmDefines        -D__ELF__
  859. #  endif /* ia64Architecture */
  860. #  ifdef Mc68020Architecture
  861. #   define CcCmd        gcc -b m68k-linux
  862. #   define CplusplusCmd        c++ -b m68k-linux
  863. #   define AsCmd        CcCmd -c -x assembler
  864. #   define LdCmd        CcCmd -nostdlib -W,l"-m m68kelf"
  865. #   define AsmDefines        -D__ELF__
  866. #  endif /* Mc68020Architecture */
  867. #  ifdef AMD64Architecture
  868. #   define CcCmd                 gcc
  869. #   define CplusplusCmd          g++
  870. #   define AsCmd                 CcCmd -c -x assembler
  871. #   define LdCmd                 CcCmd -nostdlib
  872. #   define AsmDefines            -D__ELF__
  873. #  endif /* AMD64Architecture */
  874. # else
  875. #  define CcCmd            gcc
  876. #  define AsCmd            CcCmd -c -x assembler
  877. #  define LdCmd            CcCmd -nostdlib
  878. #  define AsmDefines        -DUSE_GAS -D__ELF__
  879. # endif
  880. #endif
  881.  
  882. /*
  883.  * Some older distros still need /lib/cpp.  There's probably a better
  884.  * test, but this handles the older Red Hat releases at least.
  885.  */
  886. #ifndef CppCmd
  887. # if (LinuxDistribution == LinuxRedHat) && \
  888.      ((LinuxCLibMajorVersion < 6) || \
  889.       (LinuxCLibMajorVersion == 6 && LinuxCLibMinorVersion < 1))
  890. #  define CppCmd        /lib/cpp
  891. # else
  892. #  define CppCmd        cpp
  893. # endif
  894. #endif
  895.  
  896. /* Some Linux distributions have yacc, some don't. All have bison. */
  897. #define YaccCmd            bison -y
  898. #define LexCmd            flex -l
  899. #define HasFlex            YES
  900. #define LexLib            -lfl
  901. #define PreProcessCmd        CcCmd -E
  902. #define PostIncDir        DefaultGccIncludeDir
  903. #define LdCombineFlags        -r
  904. #ifndef LdPostLib
  905. # define LdPostLib        /* Never needed */
  906. #endif
  907. #define HasWChar32        YES
  908. #define StandardCppOptions    -traditional
  909. #define StandardCppDefines    StandardDefines
  910.  
  911. #define HasVarRun        YES
  912. #ifndef VarDbDirectory
  913. # define VarDbDirectory        $(VARDIR)/lib
  914. #endif
  915.  
  916. #ifndef XF86OSCardDrivers
  917. # ifdef __linux__
  918. #  define XF86OSCardDrivers    fbdev v4l sisusb
  919. # else
  920. #  define XF86OSCardDrivers    /**/
  921. # endif
  922. #endif
  923.  
  924. #ifndef OSXInputDrivers
  925. # if HasLinuxJoystick
  926. #  define OSXInputDrivers1    ur98
  927. # else
  928. #  define OSXInputDrivers1    /**/
  929. # endif
  930. # if HasLinuxInput
  931. #  define OSXInputDrivers2    aiptek evdev
  932. # else
  933. #  define OSXInputDrivers2    /**/
  934. # endif
  935. # define OSXInputDrivers    OSXInputDrivers1 OSXInputDrivers2
  936. #endif
  937.  
  938. #if UseElfFormat
  939. # define HasPlugin            YES
  940. # define VendorHasX11R6_3libXext    YES    /* XC or XFree86 >= 3.3.1 */
  941. #endif
  942.  
  943. #ifdef AlphaArchitecture
  944. # ifndef OptimizedCDebugFlags
  945. #  define OptimizedCDebugFlags    DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  946. # endif
  947. # define LinuxMachineDefines    -D__alpha__
  948. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  949. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64 -DJENSEN_SUPPORT
  950. # ifdef UseCompaqMathLibrary
  951. #  define MathLibrary        -lcpml -lm
  952. # endif
  953. #endif /* AlphaArchitecture */
  954.  
  955. #ifdef Arm32Architecture
  956. # define DefaultCCOptions
  957. # ifndef OptimizedCDebugFlags
  958. #  define OptimizedCDebugFlags    DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  959. # endif
  960. # define LinuxMachineDefines    -D__arm__ -D__arm32__ -U__arm -Uarm
  961. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  962. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines
  963. #endif /* Arm32Achitecture */
  964.  
  965. #ifdef HPArchitecture
  966. # ifndef OptimizedCDebugFlags
  967. #  define OptimizedCDebugFlags    DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  968. # endif
  969. # define LinuxMachineDefines    -D__hppa__
  970. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  971. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines
  972. #endif
  973.  
  974. #ifdef i386Architecture
  975. # ifndef OptimizedCDebugFlags
  976. #  define OptimizedCDebugFlags    DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  977. # endif
  978. # define LinuxMachineDefines    -D__i386__
  979. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  980. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines
  981. #endif /* i386Architecture */
  982.  
  983. #ifdef ia64Architecture
  984. # ifndef OptimizedCDebugFlags
  985. #  define OptimizedCDebugFlags    DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  986. # endif
  987. # define LinuxMachineDefines    -D__ia64__
  988. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  989. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
  990. #endif /* ia64Architecture */
  991.  
  992. #ifdef Mc68020Architecture
  993. # ifndef OptimizedCDebugFlags
  994. #  define OptimizedCDebugFlags    DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  995. # endif
  996. # define LinuxMachineDefines    -D__mc68000__
  997. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  998. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines
  999. #endif /* Mc68020Architecture */
  1000.  
  1001. #ifdef MipsArchitecture
  1002. # ifndef OptimizedCDebugFlags
  1003. #  define OptimizedCDebugFlags    DefaultGcc2MipsOpt
  1004. # endif
  1005. # define LinuxMachineDefines    -D__mips__
  1006. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  1007. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines
  1008. #endif
  1009.  
  1010. #ifdef Ppc64Architecture
  1011. # define DefaultCCOptions    -mminimal-toc
  1012. # ifndef OptimizedCDebugFlags
  1013. #  define OptimizedCDebugFlags    DefaultGcc2Ppc64Opt GccAliasingArgs
  1014. # endif
  1015. # define LinuxMachineDefines    -D__powerpc64__ -D__powerpc__
  1016. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME -DPART_NET
  1017. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
  1018. #endif /* Ppc64Architecture */
  1019.  
  1020. #ifdef PpcArchitecture
  1021. # define DefaultCCOptions    
  1022. # ifndef OptimizedCDebugFlags
  1023. #  define OptimizedCDebugFlags DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  1024. # endif
  1025. # define LinuxMachineDefines    -D__powerpc__
  1026. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  1027. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines
  1028. #endif /* PpcArchitecture */
  1029.  
  1030. #ifdef s390Architecture
  1031. # ifndef OptimizedCDebugFlags
  1032. #  define OptimizedCDebugFlags DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  1033. # endif
  1034. # define LinuxMachineDefines    -D__s390__
  1035. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  1036. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines
  1037. #endif /* s390Architecture */
  1038.  
  1039. #ifdef s390xArchitecture
  1040. # ifndef OptimizedCDebugFlags
  1041. #  define OptimizedCDebugFlags DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  1042. # endif
  1043. #define LinuxMachineDefines    -D__s390x__
  1044. #define ServerOSDefines        XFree86ServerOSDefines -DDDXTIME -DPART_NET
  1045. #define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
  1046. #endif /* s390xArchitecture */
  1047.  
  1048. #ifdef SparcArchitecture
  1049. # ifndef OptimizedCDebugFlags
  1050. #  define OptimizedCDebugFlags    DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  1051. # endif
  1052. # define LinuxMachineDefines    -D__sparc__
  1053. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  1054. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines
  1055. # define AsVISOption        -Av9a
  1056. # ifdef Sparc64Architecture
  1057. #  define AsOutputArchSize    64
  1058. # else
  1059. #  define AsOutputArchSize    32
  1060. # endif
  1061. #endif
  1062.  
  1063. #ifdef SuperHArchitecture
  1064. # ifndef SuperHArchOptFlags
  1065. #  ifdef SuperH4Architecture
  1066. #   define SuperHArchOptFlags    -m4
  1067. #  elif defined(SuperH4NOFPUArchitecture)
  1068. #   define SuperHArchOptFlags    -m4-nofpu
  1069. #  else
  1070. #   define SuperHArchOptFlags    -m3
  1071. #  endif
  1072. # endif 
  1073. # ifndef SuperHebArchitecture
  1074. #  ifdef SuperHebArchitecture
  1075. #   define SuperHEndianFlags    -mb
  1076. #  else
  1077. #   define SuperHEndianFlags    -ml
  1078. #  endif
  1079. # endif
  1080. # ifndef OptimizedCDebugFlags
  1081. #  define OptimizedCDebugFlags    DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt SuperHArchOptFlags SuperHEndianFlags GccAliasingArgs
  1082. # endif
  1083. # define LinuxMachineDefines    -D__sh__
  1084. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  1085. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines
  1086. # ifndef DoLoadableServer
  1087. #  define DoLoadableServer NO
  1088. # endif
  1089. #endif
  1090.  
  1091. #ifdef AMD64Architecture
  1092. # ifndef OptimizedCDebugFlags
  1093. #  define OptimizedCDebugFlags    DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  1094. # endif
  1095. # define LinuxMachineDefines   -D__amd64__
  1096. # define ServerOSDefines    XFree86ServerOSDefines -DDDXTIME
  1097. # define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
  1098. #endif /* AMD64Architecture */
  1099.  
  1100. #ifndef StandardDefines
  1101. # ifdef __linux__
  1102. #  define StandardDefines    -Dlinux LinuxMachineDefines LinuxSourceDefines
  1103. # else
  1104. #  define StandardDefines    LinuxMachineDefines LinuxSourceDefines
  1105. # endif
  1106. #endif
  1107.  
  1108. #if UseElfFormat
  1109. # define DlLibrary        -rdynamic -ldl
  1110. #else
  1111. # define DlLibrary        /**/
  1112. #endif
  1113.  
  1114. #define ServerExtraSysLibs    /**/
  1115.  
  1116. #ifndef PamLibraries
  1117. #define PamLibraries        -lpam DlLibrary
  1118. #endif
  1119.  
  1120. #ifndef PamMiscLibraries
  1121. #define PamMiscLibraries    -lpam_misc
  1122. #endif
  1123.  
  1124. #ifndef HasDECnet
  1125. #define HasDECnet        NO
  1126. #endif
  1127. #if HasDECnet
  1128. # define ConnectionFlags    -DUNIXCONN -DTCPCONN -DDNETCONN
  1129. # define ExtraLibraries        -ldnet
  1130. #else
  1131. # define ConnectionFlags    -DUNIXCONN -DTCPCONN
  1132. #endif
  1133.  
  1134. #ifndef StaticLibrary
  1135. # define StaticLibrary(libpath,libname) -Wl,-Bstatic Concat(-L,libpath) Concat(-l,libname) -Wl,-Bdynamic
  1136. #endif
  1137.  
  1138. #ifndef LinkGLToUsrLib
  1139. # define LinkGLToUsrLib        YES
  1140. #endif
  1141. # ifndef LinkGLToUsrInclude
  1142. # define LinkGLToUsrInclude    YES
  1143. #endif
  1144.  
  1145.  
  1146. #define HasGnuMake        YES
  1147.  
  1148. #define MakeNamedTargetSubdir(dir,flags,subname)\
  1149.     $(MAKE) -C dir $(MFLAGS) $(PARALLELMFLAGS) flags subname
  1150.  
  1151. #define ArchitectureDefines    -DLINUX_ARCHITECTURE
  1152.  
  1153. #define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
  1154. #define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
  1155.  
  1156. #ifndef ExtraXawClientLibs
  1157. # define ExtraXawClientLibs /**/
  1158. #endif
  1159. #ifndef ExtraXawClientDepLibs
  1160. # define ExtraXawClientDepLibs /**/
  1161. #endif
  1162. #ifndef ExtraXawReqs
  1163. # define ExtraXawReqs /**/
  1164. #endif
  1165.  
  1166. #if HaveLib64
  1167. # ifndef LibDirName
  1168. #  define LibDirName        lib64
  1169. # endif
  1170. # ifndef SystemUsrLibDir
  1171. #  define SystemUsrLibDir    /usr/lib64
  1172. # endif
  1173. # ifndef TkLibDir
  1174. #  define TkLibDir        /usr/lib64
  1175. # endif
  1176. #endif
  1177.  
  1178. #ifndef BuildDmx
  1179. #define BuildDmx    YES
  1180. #endif
  1181.  
  1182. #include <lnxLib.rules>
  1183. # include <xorg.cf>
  1184.  
  1185. #ifndef XFree86ServerOSDefines
  1186. # define XFree86ServerOSDefines
  1187. #endif
  1188.  
  1189. /*
  1190.  *     SELinux support
  1191.  */
  1192. #if defined(__linux__)
  1193. # ifndef HasSELinux
  1194. #  define HasSELinux YES
  1195. # endif
  1196. #endif
  1197.  
  1198. #ifndef SELinuxDefines
  1199. # if HasSELinux
  1200. #  define SELinuxDefines -DHAVE_SELINUX
  1201. # else
  1202. #  define SELinuxDefines /**/
  1203. # endif
  1204. #endif
  1205.  
  1206. #ifndef SELinuxIncludeFlags
  1207. # if HasSELinux
  1208. #   define SELinuxIncludeFlags -I/usr/include/selinux
  1209. # else
  1210. #   define SELinuxIncludeFlags /**/
  1211. # endif
  1212. #endif
  1213.  
  1214. #ifndef SELinuxCompileFlags
  1215. # define SELinuxCompileFlags /**/
  1216. #endif
  1217.  
  1218. #ifndef SELinuxLoadFlags
  1219. # define SELinuxLoadFlags SELinuxCompileFlags
  1220. #endif
  1221.  
  1222. #ifndef SELinuxLibraries
  1223. # if HasSELinux
  1224. #  define SELinuxLibraries -lselinux
  1225. # else
  1226. #  define SELinuxLibraries /**/
  1227. # endif
  1228. #endif
  1229.  
  1230. #if HasSELinux
  1231. # ifndef SELINUX_LDFLAGS
  1232.    SELINUX_LDFLAGS = SELinuxLoadFlags
  1233. # endif
  1234. # ifndef SELINUX_INCLUDES
  1235.    SELINUX_INCLUDES = SELinuxIncludeFlags
  1236. # endif
  1237. # ifndef SELINUX_CFLAGS
  1238.    SELINUX_CFLAGS = SELinuxCompileFlags SELinuxDefines
  1239. # endif
  1240. # ifndef SELINUX_LIBS
  1241.    SELINUX_LIBS = SELinuxLibraries
  1242. # endif
  1243. #endif
  1244.